package week08.MidEx;

//飞机在机场的适配类
public class PlaneInAirPort implements InAirport{

    protected PlaneImpl plane = null;

    public PlaneInAirPort() {
        this.plane = new PlaneImpl();
    }

    public PlaneInAirPort(PlaneImpl plane) {
        this.plane = plane;
    }
    @Override
    public void flying(){
        this.plane.takeOff();
        System.out.println("飞机flying--适配功能");
    }

}

